package denaris.core.listener;

import denaris.core.AbstractParticle;

/**
 * Particle listeners are notified whenever particles are created or destroyed.
 * This is useful for efficiently holding particles within Vectors. Once the
 * particle has been created it can be put into a vector and when it's been
 * destroyed it is thrown out of the vector.
 * 
 * @author stkl23
 * 
 */
public interface IParticleListener {
	/** notifies that the particle has been created */
	public void particleIn(AbstractParticle particle);

	/** notifies that the particle has gone out of scope */
	public void particleOut(AbstractParticle particle);
}
